from django.contrib import admin

# Register your models here.

from .models import *

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('c_name', )

class TagAdmin(admin.ModelAdmin):
    list_display = ('t_name', )

class BlogAdmin(admin.ModelAdmin):
    list_display = ('title', 'author', 'category',  'content', 'pub')

class CommentAdmin(admin.ModelAdmin):
    list_display = ('blog', 'p_name', 'content', 'pub')

admin.site.register(Category, CategoryAdmin)
admin.site.register(Tag, TagAdmin)
admin.site.register(Blog, BlogAdmin)
admin.site.register(Comment, CommentAdmin)